/**
 * Generate code from /{{projectName}}-core/src/main/java/{{packageName}}/{{apis}}/dto/{{apiDtos@DEFAULT}}.java.hbs
 */
package cn.ibizlab.api.dto;

import java.util.*;
import java.io.Serializable;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.alibaba.fastjson.annotation.JSONField;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import cn.ibizlab.util.domain.DTOBase;
import cn.ibizlab.util.domain.DTOClient;
import lombok.*;
import lombok.experimental.Accessors;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 授权系统[AuthGrantedSystemDTO]
 *
 * @author generator
 */
@Getter
@Setter
@NoArgsConstructor
@Accessors(chain = true)
@ApiModel("授权系统DTO")
public class AuthGrantedSystemDTO extends DTOBase implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 系统标识
     */
    @JsonProperty("deploy_system_id")
    @JSONField(name = "deploy_system_id")
    @ApiModelProperty(value = "系统标识", position = 0)
    private String deploySystemId;

    /**
     * 系统名称
     */
    @JsonProperty("display_name")
    @JSONField(name = "display_name")
    @ApiModelProperty(value = "系统名称", position = 1)
    private String displayName;

    /**
     * 系统名
     */
    @JsonProperty("system_id")
    @JSONField(name = "system_id")
    @ApiModelProperty(value = "系统名", position = 2)
    private String systemId;

    /**
     * 角色
     */
    @JsonProperty("roles")
    @JSONField(name = "roles")
    @ApiModelProperty(value = "角色", position = 3)
    private List<AuthGrantedRoleDTO> roles;


    /**
     * 设置 [系统名称]
     */
    public AuthGrantedSystemDTO setDisplayName(String displayName) {
        this.displayName = displayName;
        this.modify("display_name", displayName);
        return this;
    }

    /**
     * 设置 [系统名]
     */
    public AuthGrantedSystemDTO setSystemId(String systemId) {
        this.systemId = systemId;
        this.modify("system_id", systemId);
        return this;
    }

    /**
     * 设置 [角色]
     */
    public AuthGrantedSystemDTO setRoles(List<AuthGrantedRoleDTO> roles) {
        this.roles = roles;
        this.modify("roles", roles);
        return this;
    }


}
